// 商品分类

import { defineStore } from "pinia";
// import { getCatesApi,addCateApi,delCateApi,editCateApi } from '../api/catesApi'
import { ElMessage } from "element-plus";

const useCatesStore = defineStore("cates", {
  state: () => {
    return {
      cateList: [],
      dialogVisible: false,
    };
  },
  actions: {
    // 关闭对话框
    closeDialog() {
      this.dialogVisible = false;
    },
    // 打开对话框
    openDialog() {
      this.dialogVisible = true;
    },
  },
});

export default useCatesStore;
